package models;

import play.*;
import play.data.validation.Required;
import play.db.jpa.*;

import javax.persistence.*;
import java.util.*;

@Entity
@Table(name = "formationtypes")
public class FormationType extends Model {

    @Required
    public String name;
    @Required
    public int code;

    public FormationType(String name, int code) {

        this.name = name;
        this.code = code;

    }

    @Override
    public String toString() {
        return this.name;
    }
}
